import { defineStore } from 'pinia';
import { ref } from 'vue';

// 技能
// export const useSkillStore = defineStore('skill', () => {
//   const skill = ref<string[]>([]);

//   function setData(data: string[]) {
//     skill.value = data;
//   }

//   return { skill, setData };
// });


export interface ISkillState {
  skill:string[]
}

export const useSkillStore = defineStore({
  id:'skill',
  state:() => (
    {
      skill:[]
    } as ISkillState
  ),
  actions: {
    setData(data: any){
      this.$state.skill = data
    }
  }
})